
package com.creditease.tmsp.modules.sys.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.creditease.tmsp.common.persistence.MyBatisBaseDao;
import com.creditease.tmsp.common.service.MyBatisBaseService;
import com.creditease.tmsp.modules.sys.dao.SysRoleDao;
import com.creditease.tmsp.modules.sys.entity.SysRole;

/**
 * 系统管理，安全相关实体的管理类,包括用户、角色、菜单.
 * @author 
 * @version 
 */
@Service
@Transactional(readOnly = true)
public class RoleService extends MyBatisBaseService<SysRole>  {
	
	@Autowired
	private SysRoleDao roleDao;

	public SysRole getByName(String name) {
		return roleDao.getByName(name);
	}
	
	
	@Override
	public MyBatisBaseDao<SysRole> getDao() {
		return roleDao;
	}
	

}
